package com.yl.auth.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yl.auth.entity.Role;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author L
 * @since 2023-07-19
 */
public interface JigouzhongxinduanroleService extends IService<Role> {

    void saveRoleAndPermission(Role role, List<Long> idList);

    List<Long> getRoleById(Long id);

    void deleteById(Long id);

    void updateRpByRoleId(Integer roleId, List<Long> idList);

    Page<Role> findAllAndPage(Page<Role> page1);

    void deleteRaByRoleId(Long id);

    void deleteRpByRoleId(Long id);

    Role getByIdRole(Integer id);
}
